Fix the building of the Xen TPM driver as module and prevents front-
authorkaf24@firebug.cl.cam.ac.uk <kaf24@firebug.cl.cam.ac.uk>
Thu, 11 May 2006 12:42:20 +0000 (13:42 +0100)
committerkaf24@firebug.cl.cam.ac.uk <kaf24@firebug.cl.cam.ac.uk>
Thu, 11 May 2006 12:42:20 +0000 (13:42 +0100)
and backends to be rmmod'ed by removing their module_exit line.
Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
linux-2.6-xen-sparse/drivers/char/tpm/Kconfig
linux-2.6-xen-sparse/drivers/char/tpm/Makefile
linux-2.6-xen-sparse/drivers/char/tpm/tpm_xen.c
linux-2.6-xen-sparse/drivers/xen/tpmback/tpmback.c

index 4331c7c6d04dd8223f1121f12ed03684a4f7e500..3852fae92abd11e34470ff851bda1bbe3a6ec64c 100644 (file)
@@ -53,10 +53,9 @@ config TCG_XEN
        tristate "XEN TPM Interface"
        depends on TCG_TPM && XEN
        ---help---
-         If you want to make TPM support available to a Xen
-         user domain, say Yes and it will
-          be accessible from within Linux. To compile this driver
-          as a module, choose M here; the module will be called
-          tpm_xen.
+         If you want to make TPM support available to a Xen user domain,
+         say Yes and it will be accessible from within Linux.
+         To compile this driver as a module, choose M here; the module
+         will be called tpm_xenu.
 
 endmenu
index b1a3d91c8858c989b2141861c3e0e2f7d0682bc7..7666e39d2b222107e0e4892ed692893be3814678 100644 (file)
@@ -8,4 +8,5 @@ endif
 obj-$(CONFIG_TCG_NSC) += tpm_nsc.o
 obj-$(CONFIG_TCG_ATMEL) += tpm_atmel.o
 obj-$(CONFIG_TCG_INFINEON) += tpm_infineon.o
-obj-$(CONFIG_TCG_XEN) += tpm_xen.o tpm_vtpm.o
+obj-$(CONFIG_TCG_XEN) += tpm_xenu.o
+tpm_xenu-y = tpm_xen.o tpm_vtpm.o
index 4d38953444577d157f6402d0e23085087bd0a99c..bf58e109dd878fd9899a7be22f90979e517b4c39 100644 (file)
@@ -752,7 +752,6 @@ static void __exit tpmif_exit(void)
 }
 
 module_init(tpmif_init);
-module_exit(tpmif_exit);
 
 MODULE_LICENSE("Dual BSD/GPL");
 
index cb2442aef05440408277116007a32a639add27bf..302d9e9f9ffd9b7eb49413a31fccaa2299cc9169 100644 (file)
@@ -1071,8 +1071,6 @@ static void __exit tpmback_exit(void)
        misc_deregister(&vtpms_miscdevice);
 }
 
-module_exit(tpmback_exit);
-
 MODULE_LICENSE("Dual BSD/GPL");
 
 /*